%global _empty_manifest_terminate_build 0
Name:		python-audioread
Version:	3.0.1
Release:	1
Summary:	multi-library, cross-platform audio decoding
License:	MIT
URL:		https://github.com/sampsyo/audioread
Source0:	https://files.pythonhosted.org/packages/db/d2/87016ca9f083acadffb2d8da59bfa3253e4da7eeb9f71fb8e7708dc97ecd/audioread-3.0.1.tar.gz
BuildArch:	noarch


%description
Decode audio files using whichever backend is available. The library
currently supports:
- `Gstreamer`_ via `PyGObject`_.
- `Core Audio`_ on Mac OS X via `ctypes`_. (PyObjC not required.)
- `MAD`_ via the `pymad`_ bindings.
- `FFmpeg`_ or `Libav`_ via its command-line interface.
- The standard library `wave`_, `aifc`_, and `sunau`_ modules (for
  uncompressed audio formats).

%package -n python3-audioread
Summary:	multi-library, cross-platform audio decoding
Provides:	python-audioread = %{version}-%{release}
BuildRequires:	python3-devel
BuildRequires:	python3-pip
BuildRequires:	python3-wheel
BuildRequires:	python3-flit

%description -n python3-audioread
Decode audio files using whichever backend is available. The library
currently supports:
- `Gstreamer`_ via `PyGObject`_.
- `Core Audio`_ on Mac OS X via `ctypes`_. (PyObjC not required.)
- `MAD`_ via the `pymad`_ bindings.
- `FFmpeg`_ or `Libav`_ via its command-line interface.
- The standard library `wave`_, `aifc`_, and `sunau`_ modules (for
  uncompressed audio formats).

%package help
Summary:	Development documents and examples for audioread
Provides:	python3-audioread-doc

%description help
Decode audio files using whichever backend is available. The library
currently supports:
- `Gstreamer`_ via `PyGObject`_.
- `Core Audio`_ on Mac OS X via `ctypes`_. (PyObjC not required.)
- `MAD`_ via the `pymad`_ bindings.
- `FFmpeg`_ or `Libav`_ via its command-line interface.
- The standard library `wave`_, `aifc`_, and `sunau`_ modules (for
  uncompressed audio formats).

%prep
%autosetup -n audioread-%{version}

%build
%pyproject_build

%install
%pyproject_install
install -d -m755 %{buildroot}/%{_pkgdocdir}
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi

%files -n python3-audioread
%{python3_sitelib}/*

%files help
%{_docdir}/*

%changelog
* Tue Nov 14 2023 jiangxinyu <jiangxinyu@kylinos.cn> - 3.0.1-1
- Update package to version 3.0.1

* Mon Nov 14 2022 wangjunqi <wangjunqi@kylinos.cn> - 3.0.0-1
- Update package to version 3.0.0

* Fri Jul 23 2021 Xu Jin <jinxu@kylinos.cn> - 2.1.9-1
- Update package to 2.1.9

* Sat Jul 18 2020 Python_Bot <Python_Bot@openeuler.org>
- Package Spec generated

